﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wjtour.Common;
using Hjp.FrameWork.Common;
using Wjtour.BLL;

namespace Wjtour.Web.Front
{
    public partial class gallery : BasePage
    {

        #region 固定分页参数
        private int page = 1;
        private int pagesize = 8;
        #endregion

        sitepicture_bll _bll = new sitepicture_bll();
        protected PaginationData<Wjtour.Domain.dto.sitepicture_picturetype> data = new PaginationData<Domain.dto.sitepicture_picturetype>();
        protected int type = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            page = Utils.StrToInt(Request["page"], 1);
            type = Utils.StrToInt(Request["type"], 1);

            bindList();
        }

        void bindList()
        {
            data = _bll.GetCoverList(type.ToString(), page - 1, pagesize);
        }
    }
}
